package org.example.ioc.demo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
// 批量读取
@ConfigurationProperties(prefix = "student1")
@Component
@Data
public class Student {
    private Integer id;
    private String name;
    private Character gender;
    private String password;
    private String[] loves;
}
